package top.yuyufeng;

import java.util.Date;

/**
 * @author yuyufeng
 * @date 2018/11/8.
 */
public class TransJson {
    private String type;
    private String to;
    private String from;
    private Date date;
    private Object content;

    public TransJson() {
    }

    public TransJson(String type, String to, String from, Date date, Object content) {
        this.type = type;
        this.to = to;
        this.from = from;
        this.date = date;
        this.content = content;
    }

    public String getType() {
        return type;
    }

    public void setType(String type) {
        this.type = type;
    }

    public String getTo() {
        return to;
    }

    public void setTo(String to) {
        this.to = to;
    }

    public String getFrom() {
        return from;
    }

    public void setFrom(String from) {
        this.from = from;
    }

    public Date getDate() {
        return date;
    }

    public void setDate(Date date) {
        this.date = date;
    }

    public Object getContent() {
        return content;
    }

    public void setContent(Object content) {
        this.content = content;
    }

    @Override
    public String toString() {
        return "RespJson{" +
                "type='" + type + '\'' +
                ", to='" + to + '\'' +
                ", from='" + from + '\'' +
                ", date=" + date +
                ", content=" + content +
                '}';
    }
}
